var userId=getCookie("userId");
$("#can").off().on("click","#del",function() {
    let $li = $("#note_list a.checked").parent("li");
    let noteId = $li.data("noteId");
    $.ajax({
        url: base_url +"/note/recycle.do",
        type: "post",
        data: {
            "noteId":noteId
        },
        dataType: "json",
        success:function(data) {
            if (data.status==0) {
                $(".opacity_bg").hide();
                $("#can").empty()
                $li.remove()
                return false;
            }else {
                $(".opacity_bg").hide();
                $("#can").empty()
            }
        },
        error : function(data) {
            alert("删除失败,稍后重试")
        }
    })

})
